xen/arm: next_module: Skip module if the size is 0
authorJulien Grall <julien.grall@linaro.org>
Mon, 17 Mar 2014 14:05:54 +0000 (14:05 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 21 Mar 2014 11:10:12 +0000 (11:10 +0000)
commitc84e6224f5c9788cf8356cc2aad32b4a12d9834e
treed3eb7bc9b1bb23f44a17e636d5f4cfc3aac4ce01
parentbe5d66adb4bf2fc750e910cfa9b14b0701eae5fc
xen/arm: next_module: Skip module if the size is 0

When the the module size is 0, it means that the module was not provided by
the user. It can happen, if the user choose to boot without initrd.

In this case, both fields (start and size) are zeroed. Therefore, next_module
will return 0 every time if there is other non-zero module after this one. This
can happen when the XSM module is added.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/setup.c